# Copyright (C) 2005 Taylor L. Riché <riche@cs.utexas.edu>
#  
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without 
# modifications, as long as this notice is preserved.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bin_PROGRAMS = llt

GRAMMAR = lagniappe.g

llt_SOURCES = Main.java $(GRAMMAR) $(ANTLR_GEN) 
llt_LDFLAGS = --main=Main /usr/share/java/antlr-2.7.4.jar

AM_GCJFLAGS = -I/usr/share/java/antlr-2.7.4.jar -I$(srcdir)
ANTLR=$(ANTLREXE)

ANTLR_GEN = LltLexer.java LltLexerTokenTypes.java \
            LltParser.java LltParserTokenTypes.java
ANTLR_GEN_TEXT = LltLexerTokenTypes.txt LltParserTokenTypes.txt

$(ANTLR_GEN): $(GRAMMAR)
	$(ANTLR) $(AFLAGS) $<

CLEANFILES = $(ANTLR_GEN) $(ANTLR_GEN_TEXT)
